<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="A fully featured admin theme which can be used to build CRM, CMS, etc.">
        <meta name="author" content="Coderthemes">

        <link rel="shortcut icon" href="assets/images/favicon_1.ico">

        <title>Ubold - Responsive Admin Dashboard Template</title>

        <!-- Ladda buttons css -->
        <link href="../plugins/ladda-buttons/css/ladda-themeless.min.css" rel="stylesheet" type="text/css" />

        <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <link href="assets/css/icons.css" rel="stylesheet" type="text/css" />
        <link href="assets/css/style.css" rel="stylesheet" type="text/css" />

        <script src="assets/js/modernizr.min.js"></script>


    </head>


    <body class="fixed-left" id="do-nicescrol">
        <!-- Page-Title -->
        <div class="row">
            <div class="col-sm-12">
                <div class="btn-group pull-right m-t-15">
                    <button type="button" class="btn btn-default dropdown-toggle waves-effect waves-light" data-toggle="dropdown" aria-expanded="false">Settings</button>
                    <div class="dropdown-menu dropdown-menu-right" aria-labelledby="btnGroupDrop1">
                        <a class="dropdown-item" href="ui-loading-buttons.html#">Dropdown One</a>
                        <a class="dropdown-item" href="ui-loading-buttons.html#">Dropdown Two</a>
                        <a class="dropdown-item" href="ui-loading-buttons.html#">Dropdown Three</a>
                        <a class="dropdown-item" href="ui-loading-buttons.html#">Dropdown Four</a>
                    </div>
                </div>

                <h4 class="page-title">加载按钮</h4>
                <p class="text-muted page-title-alt">欢迎来到Ubold管理面板!</p>

            </div>
        </div>


        <div class="row">
            <div class="col-12">
                <div class="card-box">
                    <h4 class="header-title m-t-0"><b>例子</b></h4>
                    <p class="text-muted m-b-30 font-13">
                        U使用一个按钮类 <code>&lt;a&gt;</code>, <code>
                        &lt;button&gt;</code>, 或 <code>&lt;input&gt;</code> 元素.
                    </p>


                    <div class="row text-center">
                        <div class="col-sm-6 col-xl-3">
                            <div class="p-20">
                                <h5 class="text-muted font-16">Expand-left</h5>
                                <button class="ladda-button btn btn-primary" data-style="expand-left">
                                    Submit
                                </button>
                            </div>
                        </div>
                        <div class="col-sm-6 col-xl-3">
                            <div class="p-20">
                                <h5 class="text-muted font-16">Expand-right</h5>
                                <button class="ladda-button btn btn-primary" data-style="expand-right">
                                    Submit
                                </button>
                            </div>
                        </div>
                        <div class="col-sm-6 col-xl-3">
                            <div class="p-20">
                                <h5 class="text-muted font-16">Expand-up</h5>
                                <button class="ladda-button btn btn-primary" data-style="expand-up">Submit
                                </button>
                            </div>
                        </div>
                        <div class="col-sm-6 col-xl-3">
                            <div class="p-20">
                                <h5 class="text-muted font-16">Expand-down</h5>
                                <button class="ladda-button btn btn-primary" data-style="expand-down">
                                    Submit
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="row text-center">
                        <div class="col-sm-6 col-xl-3">
                            <div class="p-20">
                                <h5 class="text-muted font-16">Contract</h5>
                                <button class="ladda-button btn btn-warning" data-style="contract">Submit
                                </button>
                            </div>
                        </div>
                        <div class="col-sm-6 col-xl-3">
                            <div class="p-20">
                                <h5 class="text-muted font-16">Zoom-in</h5>
                                <button class="ladda-button btn btn-warning" data-style="zoom-in">Submit
                                </button>
                            </div>
                        </div>
                        <div class="col-sm-6 col-xl-3">
                            <div class="p-20">
                                <h5 class="text-muted font-16">Zoom-out</h5>
                                <button class="ladda-button btn btn-warning" data-style="zoom-out">Submit
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="row text-center">
                        <div class="col-sm-6 col-xl-3">
                            <div class="p-20">
                                <h5 class="text-muted font-16">Slide-left</h5>
                                <button class="ladda-button  btn btn-info" data-style="slide-left">Submit
                                </button>
                            </div>
                        </div>
                        <div class="col-sm-6 col-xl-3">
                            <div class="p-20">
                                <h5 class="text-muted font-16">Slide-right</h5>
                                <button class="ladda-button btn btn-info" data-style="slide-right">Submit
                                </button>
                            </div>
                        </div>
                        <div class="col-sm-6 col-xl-3">
                            <div class="p-20">
                                <h5 class="text-muted font-16">Slide-up</h5>
                                <button class="ladda-button btn btn-info" data-style="slide-up">Submit
                                </button>
                            </div>
                        </div>
                        <div class="col-sm-6 col-xl-3">
                            <div class="p-20">
                                <h5 class="text-muted font-16">Slide-down</h5>
                                <button class="ladda-button btn btn-info" data-style="slide-down">Submit
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="row text-center">
                        <div class="col-sm-6 col-xl-3">
                            <div class="p-20">
                                <section class="progress-demo">
                                    <h5 class="text-muted font-16">Expand-right</h5>
                                    <button class="ladda-button btn btn-danger" data-style="expand-right">
                                        Submit
                                    </button>
                                </section>
                            </div>
                        </div>
                        <div class="col-sm-6 col-xl-3">
                            <div class="p-20">
                                <section class="progress-demo">
                                    <h5 class="text-muted font-16">Contract</h5>
                                    <button class="ladda-button btn btn-danger" data-style="contract">
                                        Submit
                                    </button>
                                </section>
                            </div>
                        </div>
                        <div class="col-sm-6 col-xl-3">
                            <div class="p-20">
                                <section class="progress-demo">
                                    <h5 class="text-muted font-16">Demo how to use with api services</h5>
                                    <button class="ladda-button ladda-button-demo btn btn-success"  data-style="zoom-in">Submit</button>
                                </section>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>

        <script>
            var resizefunc = [];
        </script>

        <!-- jQuery  -->
        <script src="assets/js/jquery.min.js"></script>
        <script src="assets/js/popper.min.js"></script><!-- Popper for Bootstrap -->
        <script src="assets/js/bootstrap.min.js"></script>
        <script src="assets/js/detect.js"></script>
        <script src="assets/js/fastclick.js"></script>
        <script src="assets/js/jquery.slimscroll.js"></script>
        <script src="assets/js/jquery.blockUI.js"></script>
        <script src="assets/js/waves.js"></script>
        <script src="assets/js/wow.min.js"></script>
        <script src="assets/js/jquery.nicescroll.js"></script>
        <script src="assets/js/jquery.scrollTo.min.js"></script>

        <script src="assets/js/jquery.core.js"></script>
        <script src="assets/js/jquery.app.js"></script>

        <script src="../plugins/ladda-buttons/js/spin.min.js"></script>
        <script src="../plugins/ladda-buttons/js/ladda.min.js"></script>
        <script src="../plugins/ladda-buttons/js/ladda.jquery.min.js"></script>

        <script>

            $(document).ready(function (){

                // Bind normal buttons
                Ladda.bind( '.ladda-button',{ timeout: 2000 });

                // Bind progress buttons and simulate loading progress
                Ladda.bind( '.progress-demo .ladda-button',{
                    callback: function( instance ){
                        var progress = 0;
                        var interval = setInterval( function(){
                            progress = Math.min( progress + Math.random() * 0.1, 1 );
                            instance.setProgress( progress );

                            if( progress === 1 ){
                                instance.stop();
                                clearInterval( interval );
                            }
                        }, 200 );
                    }
                });


                var LoadingBtn = Ladda.bind('.ladda-button-demo');

                LoadingBtn.click(function(){
                    // Start loading
                    LoadingBtn.ladda( 'start' );

                    // Timeout example
                    // Do something in backend and then stop ladda
                    setTimeout(function(){
                        LoadingBtn.ladda('stop');
                    },12000)


                });

            });


        </script>

    </body>
</html>